package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.Block;
import campus.aiit.ssl.manage.custom.dao.BaseDao;

import java.util.Map;

public interface BlockDao extends BaseDao<Block> {
    @Override
    int deleteByPrimaryKey(Long id);

    @Override
    int insertSelective(Block record);

    @Override
    int updateByPrimaryKeySelective(Block record);

    @Override
    Block selectByPrimaryKey(Long id);

    int addRoomForBlock(Map map);

    void deleteBlockIdForRoom(Long id);

    int delRoomForBlock(Map map);

    Block[] getBlocks(String userId);

    Block[] selectById(Long id);

    int updateUserNull(String userId);

    int updateUserByPrimaryKey(String userId, long id);

    Block[] blockWithNullUser();

    int updateBlockByMap(Map map);
}
